using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using FlickrNet;

namespace FlickrManager
{
    public partial class Group : System.Web.UI.UserControl
    {
        /// <summary>
        /// Handles the Load event of the Page control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        protected void Page_Load(object sender, EventArgs e)
        {
        }

        /// <summary>
        /// Sets the set group.
        /// </summary>
        /// <value>The set group.</value>
        public Photoset SetGroup
        {
            set
            {
                Photoset group = value;

                ahref.HRef = "Default.aspx?group=" + group.PhotosetId+"&name="+group.Title+"&imageUrl="
                    + Request.QueryString["imageUrl"] + "&groupPage=" + Request.QueryString["groupPage"] + "&setPage=1&userID="+group.OwnerId;

                image.Alt = group.Title;
                image.Src = group.PhotosetSmallUrl;

                infoSpan.InnerText = group.Title;
            }
        }
    }
}